#!/bin/bash -e

rm -rf -- /tmp/ttrss-reader/
cp -ai $HOME/workspace/ttrss-reader-fork/ttrss-reader /tmp/
rm -f -- /tmp/ttrss-reader/bin/ttrss-reader-debug.apk
cd /tmp/ttrss-reader

# Apply this change only to a copy:
ant -f buildRename.xml

android update project -p . --name ttrss-reader -t "android-10"
ant debug
cp -a /tmp/ttrss-reader/bin/ttrss-reader-debug.apk ~/ftp
echo
echo Install file from
ls -l ~/ftp/ttrss-reader-debug.apk
